package com.beiming.moudle.auth.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor //生成有参构造器
@NoArgsConstructor //生成无参构造器
@TableName("customer_login")
public class CustomerUserEntity {
    /**
     * ID
     */
    @TableId
    private Integer customerId;
    private String loginName;
    private String password;
    private Integer userStats;

    /**
     * token 登陆凭证
     */
    private String token;
    /**
     * token 过期时间
     */
    private LocalDateTime expireTime;
    /**
     * 登录时间
     */
    private LocalDateTime loginTime;
}
